package cloud.maque.base.dingding.resquest;

import cloud.maque.base.dingding.enums.MessageType;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author zhuyf
 * @date 2023/3/3 13:20
 */
@Data
public class DingDingMessageBody {


    /**
     * 消息类型
     */
    MessageType messageType = MessageType.text;

    MessageBodyVoice voice;
    MessageBodyImage image;
    MessageBodyOa oa;
    MessageBodyFile file;

    @JSONField(name = "action_card")
    MessageBodyCard actionCard;

    MessageBodyLink link;
    MessageBodyMarkdown markdown;
    MessageBodyText text = new MessageBodyText();

}
